var 	TYPMOD = 0;

// From here please don't change
var		ENGLISH = 0, NOCHANGE = 0, CODE, CHANGE = 0;

function notWord(cc)
{
	return ("\ \r\n#,\\;.:-_()<>+-*/=?!\"§$%{}[]\'~|^°€ß²³\@\&".indexOf(cc)>=0);
}

function notWord(cc)
{
	obj.focus();
	
	var caret = obj.document.selection.createRange();
	var caret2 = caret.duplicate();
	var wrd = "", i = 0, chrx, len;
	while(1)
	{
		caret2.moveStart("character", -1);
		obj.curword = caret2.duplicate();
		len = obj.curword.text.length;
		if(len == wrd.length)
			break;
		wrd = obj.curword.text;
		chrx = wrd.substring(0,1);
		if(notWord(chrx))
		{
			if(chrx.charCodeAt(0) == 13)
				wrd = wrd.substr(2);
			else
				wrd = wrd.substr(1);
			break;
		}
		i++;
	}
	wrd = toViet(wrd, key);
	
	caret.moveStart("character", -i);
	obj.curword = caret.duplicate();
	obj.curword.text = wrd;
}